<template>
	<view>
		<uni-nav-bar shadow :fixed="true" left-icon="left" title="订单备注"  status-bar @clickLeft="back" :border="false"/>
		<view class="remark">
			<uni-easyinput type="textarea" v-model="value" placeholder="请输入内容" maxlength=50></uni-easyinput>
			<view class="" style="height: 28rpx;">
				<!-- 空 -->
			</view>
			<u-button type="primary" text="完成" @click="complete()"></u-button>
		</view>	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value: '',
				newRemark:''
			}
		},
		onLoad: function (option) { 
			console.log(option.remark); 
			if(option.remark == 'undefined')
				option.remark = ''
			this.value = option.remark
		},
		methods: {
			back() {
				uni.navigateBack({
					delta: 1
				})
			},
			complete(){
				this.newRemark = this.value
				uni.navigateTo({
					url:'/pages/submitOrder/submitOrder?newRemark=' + this.newRemark 
				})
			}
		}
	}
</script>

<style>
.remark{
	width: 98%;
	margin-left: 6rpx;
	margin-top: 5rpx;
}
</style>
